package com.moyq5.mvc.maker.test.bean.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 交易(成本)手续费
 * @author Moyq5
 * @date 2017年12月12日
 */
@Entity
@Table(name = "tra_cost")
@DynamicUpdate
public class TraCost implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -664300829750968274L;
	/**
	 * 手续费ID（主键）
	 */
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "native")@GenericGenerator(name = "native", strategy = "native")
    @Column(name = "cost_id")
	private Long costId;
	/**
	 * 总手续费（元），不包含提现费
	 */
	@Column(name = "cost_total", precision = 10, scale = 2, nullable = false)
	private BigDecimal costTotal;
	/**
	 * 总保底手续费（元），不包含提现费
	 */
    @Column(name = "fee_total_min", precision = 10, scale = 2, nullable = false)	
	private BigDecimal feeTotalMin;
	/**
	 * D0增量手续费保底（元）
	 */
	@Column(name = "fee_d0_min", precision = 10, scale = 2, nullable = false)
	private BigDecimal feeD0Min;
	/**
	 * 提现费（元）
	 */
	@Column(name = "fee_remit", precision = 10, scale = 2, nullable = false)
	private BigDecimal feeRemit;
	/**
	 * D0费率
	 */
	@Column(name = "rate_d0", precision = 5, scale = 4)
	private BigDecimal rateD0;
	/**
	 * D1费率
	 */
	@Column(name = "rate_d1", precision = 5, scale = 4)
	private BigDecimal rateD1;
	/**
	 * T0费率
	 */
	@Column(name = "rate_t0", precision = 5, scale = 4)
	private BigDecimal rateT0;
	/**
	 * T1费率
	 */
	@Column(name = "rate_t1", precision = 5, scale = 4)
	private BigDecimal rateT1;
	/**
	 * V1费率
	 */
	@Column(name = "rate_v1", precision = 5, scale = 4)
	private BigDecimal rateV1;
	public Long getCostId() {
		return costId;
	}
	public void setCostId(Long costId) {
		this.costId = costId;
	}
	public BigDecimal getCostTotal() {
		return costTotal;
	}
	public void setCostTotal(BigDecimal costTotal) {
		this.costTotal = costTotal;
	}
	public BigDecimal getFeeTotalMin() {
		return feeTotalMin;
	}
	public void setFeeTotalMin(BigDecimal feeTotalMin) {
		this.feeTotalMin = feeTotalMin;
	}
	public BigDecimal getFeeD0Min() {
		return feeD0Min;
	}
	public void setFeeD0Min(BigDecimal feeD0Min) {
		this.feeD0Min = feeD0Min;
	}
	public BigDecimal getFeeRemit() {
		return feeRemit;
	}
	public void setFeeRemit(BigDecimal feeRemit) {
		this.feeRemit = feeRemit;
	}
	public BigDecimal getRateD0() {
		return rateD0;
	}
	public void setRateD0(BigDecimal rateD0) {
		this.rateD0 = rateD0;
	}
	public BigDecimal getRateD1() {
		return rateD1;
	}
	public void setRateD1(BigDecimal rateD1) {
		this.rateD1 = rateD1;
	}
	public BigDecimal getRateT0() {
		return rateT0;
	}
	public void setRateT0(BigDecimal rateT0) {
		this.rateT0 = rateT0;
	}
	public BigDecimal getRateT1() {
		return rateT1;
	}
	public void setRateT1(BigDecimal rateT1) {
		this.rateT1 = rateT1;
	}
	public BigDecimal getRateV1() {
		return rateV1;
	}
	public void setRateV1(BigDecimal rateV1) {
		this.rateV1 = rateV1;
	}
	
}
